import Layout from "@/layout";

const system = {
  path: "/system",
  component: Layout,
  redirect: "/system/apiManage",
  meta: { title: "系统管理", icon: "el-icon-s-tools" },
  children: [
    {
      path: "apiManage",
      name: "apiManage",
      component: () => import("@/views/system/apiManage/index"),
      meta: { title: "接口管理", icon: "el-icon-position" }
    },
    {
      path: "menuManage",
      name: "menuManage",
      component: () => import("@/views/system/menuManage/index"),
      meta: { title: "菜单管理", icon: "el-icon-menu" }
    },
    {
      path: "roleManage",
      name: "roleManage",
      component: () => import("@/views/system/roleManage/index"),
      meta: { title: "角色管理", icon: "el-icon-s-check" }
    },
    {
      path: "userManage",
      name: "userManage",
      component: () => import("@/views/system/userManage"),
      meta: { title: "用户管理", icon: "el-icon-user" }
    },
    {
      path: "myApp",
      name: "myApp",
      component: () => import("@/views/system/myApp"),
      meta: { title: "应用管理", icon: "el-icon-s-operation" }
    },
    {
      path: "myAppDetail",
      name: "myAppDetail",
      hidden: true,
      component: () => import("@/views/system/myApp/component/detail"),
      meta: { title: "应用编辑", icon: "el-icon-s-operation" }
    },
    {
      path: "storageManage",
      name: "storageManage",
      component: () => import("@/views/system/storage"),
      meta: {title: "存储管理", icon: "el-icon-files"}
    }
  ]
};
export default system;
